<?php

class Usuario extends MY_Model {


 
    function Usuario()
    {
        // Call the Model constructor
        parent::MY_Model();
		
		$this->setTituloModificar("Modificar Usuario");
		$this->setTituloListado("Usuarios");
		$this->setTituloCrear("Crear Usuario");

		$this->nombreTabla = "usuario";
		$this->idT1= "idusuario";
		$this->nombreCampo = "username";


		
		$this->campos[] = array("realname" => "username",
					"clase" => "text",
					"label" => "Nombre",
					"rules" => "required|min_length[3]|max_length[45]|texto");

		$this->campos[] = array("realname" => "password",
					"clase" => "password",
					"label" => "Password",
					"rules" => "min_length[3]|max_length[45]|texto");
	
		$this->campos[] = array("realname" => "idtipodeusuario",
					"clase" => "opciones",
					"label" => "Tipo de Usuario",
					"estatico" => 2,
					"modelo" => "tipodeusuario",
					"rules" => "integer");

		
    }
    
}



?>
